// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'ProductionId',
        footer: "Foots",
        cnName: '产线管理',
        name: 'productionlinemodel',
        url: "/productionlinemodel/",
        sortName: "ProductionId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"ProductionLineCode":"","ProductionLineName":"","WorkShopId":"","ProductionLinedeScription":""};
    const editFormOptions = [[{"title":"产线编码","field":"ProductionLineCode","type":"text"},
                               {"title":"产线名称","field":"ProductionLineName","type":"text"}],
                              [{"dataKey":"车间列表","data":[],"title":"所属车间（外键）","field":"WorkShopId","type":"select"}],
                              [{"title":"产线描述","field":"ProductionLinedeScription","type":"textarea"}]];
    const searchFormFields = {"ProductionLineCode":"","ProductionLineName":""};
    const searchFormOptions = [[{"title":"产线编码","field":"ProductionLineCode"},{"title":"产线名称","field":"ProductionLineName"}]];
    const columns = [{field:'ProductionId',title:'产线id',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ProductionLineCode',title:'产线编码',type:'string',width:120,align:'left',sort:true},
                       {field:'ProductionLineName',title:'产线名称',type:'string',width:120,align:'left'},
                       {field:'WorkShopId',title:'所属车间（外键）',type:'int',bind:{ key:'车间列表',data:[]},width:110,align:'left'},
                       {field:'ProductionLinedeScription',title:'产线描述',type:'string',width:220,align:'left'},
                       {field:'ProductionLineattriButes',title:'产线属性',type:'string',width:220,hidden:true,align:'left'},
                       {field:'CreateUserName',title:'创建人',type:'string',width:220,align:'left'},
                       {field:'UpdateUserName',title:'修改人',type:'string',width:220,hidden:true,align:'left'},
                       {field:'CreateTime',title:'创建时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'UpdateTime',title:'更新时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'IsDeleted',title:'软删除',type:'sbyte',width:110,hidden:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}